
; 安装程序定义
!define APP_NAME "Serialer"
!define APP_VERSION "0.1.20230429"

!include "MUI.nsh"

SetCompressor lzma

Name "${APP_NAME} ${APP_VERSION}"
OutFile "dist\serialer${APP_VERSION}.exe"
InstallDir "$PROGRAMFILES"

Section "-" SEC01
    SetOverwrite try
    SetOutPath "$INSTDIR\serialer"
    File /r "build\serialer"
    CreateShortCut "$DESKTOP\Serialer.lnk" "$INSTDIR\serialer\serialer.exe"
    SetOverWrite off
SectionEnd